Integrand size = 31, antiderivative size = 79 \[ \int \frac {x \left (a+b x+c x^2\right )}{\sqrt {1-d x} \sqrt {1+d x}} \, dx=-\frac {c x^2 \sqrt {1-d^2 x^2}}{3 d^2}-\frac {\left (2 \left (2 c+3 a d^2\right )+3 b d^2 x\right ) \sqrt {1-d^2 x^2}}{6 d^4}+\frac {b \arcsin (d x)}{2 d^3} \]
1/2*b*arcsin(d*x)/d^3-1/3*c*x^2*(-d^2*x^2+1)^(1/2)/d^2-1/6*(3*b*d^2*x+6*a* d^2+4*c)*(-d^2*x^2+1)^(1/2)/d^4
Time = 0.02 (sec) , antiderivative size = 75, normalized size of antiderivative = 0.95 \[ \int \frac {x \left (a+b x+c x^2\right )}{\sqrt {1-d x} \sqrt {1+d x}} \, dx=\frac {\sqrt {1-d^2 x^2} \left (-4 c-6 a d^2-3 b d^2 x-2 c d^2 x^2\right )}{6 d^4}+\frac {b \arctan \left (\frac {d x}{-1+\sqrt {1-d^2 x^2}}\right )}{d^3} \]
(Sqrt[1 - d^2*x^2]*(-4*c - 6*a*d^2 - 3*b*d^2*x - 2*c*d^2*x^2))/(6*d^4) + ( b*ArcTan[(d*x)/(-1 + Sqrt[1 - d^2*x^2])])/d^3
Time = 0.37 (sec) , antiderivative size = 95, normalized size of antiderivative = 1.20, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.226, Rules used = {2112, 2340, 25, 533, 27, 455, 223}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x \left (a+b x+c x^2\right )}{\sqrt {1-d x} \sqrt {d x+1}} \, dx\) |
\(\Big \downarrow \) 2112 |
\(\displaystyle \int \frac {x \left (a+b x+c x^2\right )}{\sqrt {1-d^2 x^2}}dx\) |
\(\Big \downarrow \) 2340 |
\(\displaystyle -\frac {\int -\frac {x \left (3 a d^2+3 b x d^2+2 c\right )}{\sqrt {1-d^2 x^2}}dx}{3 d^2}-\frac {c x^2 \sqrt {1-d^2 x^2}}{3 d^2}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\int \frac {x \left (3 a d^2+3 b x d^2+2 c\right )}{\sqrt {1-d^2 x^2}}dx}{3 d^2}-\frac {c x^2 \sqrt {1-d^2 x^2}}{3 d^2}\) |
\(\Big \downarrow \) 533 |
\(\displaystyle \frac {\frac {\int \frac {d^2 \left (3 b+2 \left (3 a d^2+2 c\right ) x\right )}{\sqrt {1-d^2 x^2}}dx}{2 d^2}-\frac {3}{2} b x \sqrt {1-d^2 x^2}}{3 d^2}-\frac {c x^2 \sqrt {1-d^2 x^2}}{3 d^2}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {1}{2} \int \frac {3 b+2 \left (3 a d^2+2 c\right ) x}{\sqrt {1-d^2 x^2}}dx-\frac {3}{2} b x \sqrt {1-d^2 x^2}}{3 d^2}-\frac {c x^2 \sqrt {1-d^2 x^2}}{3 d^2}\) |
\(\Big \downarrow \) 455 |
\(\displaystyle \frac {\frac {1}{2} \left (3 b \int \frac {1}{\sqrt {1-d^2 x^2}}dx-2 \sqrt {1-d^2 x^2} \left (3 a+\frac {2 c}{d^2}\right )\right )-\frac {3}{2} b x \sqrt {1-d^2 x^2}}{3 d^2}-\frac {c x^2 \sqrt {1-d^2 x^2}}{3 d^2}\) |
\(\Big \downarrow \) 223 |
\(\displaystyle \frac {\frac {1}{2} \left (\frac {3 b \arcsin (d x)}{d}-2 \sqrt {1-d^2 x^2} \left (3 a+\frac {2 c}{d^2}\right )\right )-\frac {3}{2} b x \sqrt {1-d^2 x^2}}{3 d^2}-\frac {c x^2 \sqrt {1-d^2 x^2}}{3 d^2}\) |
-1/3*(c*x^2*Sqrt[1 - d^2*x^2])/d^2 + ((-3*b*x*Sqrt[1 - d^2*x^2])/2 + (-2*( 3*a + (2*c)/d^2)*Sqrt[1 - d^2*x^2] + (3*b*ArcSin[d*x])/d)/2)/(3*d^2)
3.1.15.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSin[Rt[-b, 2]*(x/Sqrt [a])]/Rt[-b, 2], x] /; FreeQ[{a, b}, x] && GtQ[a, 0] && NegQ[b]
Int[((c_) + (d_.)*(x_))*((a_) + (b_.)*(x_)^2)^(p_.), x_Symbol] :> Simp[d*(( a + b*x^2)^(p + 1)/(2*b*(p + 1))), x] + Simp[c Int[(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, p}, x] && !LeQ[p, -1]
Int[(x_)^(m_.)*((c_) + (d_.)*(x_))*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[d*x^m*((a + b*x^2)^(p + 1)/(b*(m + 2*p + 2))), x] - Simp[1/(b*(m + 2* p + 2)) Int[x^(m - 1)*(a + b*x^2)^p*Simp[a*d*m - b*c*(m + 2*p + 2)*x, x], x], x] /; FreeQ[{a, b, c, d, p}, x] && IGtQ[m, 0] && GtQ[p, -1] && Integer Q[2*p]
Int[(Px_)*((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.)*((e_.) + (f _.)*(x_))^(p_.), x_Symbol] :> Int[Px*(a*c + b*d*x^2)^m*(e + f*x)^p, x] /; F reeQ[{a, b, c, d, e, f, m, n, p}, x] && PolyQ[Px, x] && EqQ[b*c + a*d, 0] & & EqQ[m, n] && (IntegerQ[m] || (GtQ[a, 0] && GtQ[c, 0]))
Int[(Pq_)*((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> With[ {q = Expon[Pq, x], f = Coeff[Pq, x, Expon[Pq, x]]}, Simp[f*(c*x)^(m + q - 1 )*((a + b*x^2)^(p + 1)/(b*c^(q - 1)*(m + q + 2*p + 1))), x] + Simp[1/(b*(m + q + 2*p + 1)) Int[(c*x)^m*(a + b*x^2)^p*ExpandToSum[b*(m + q + 2*p + 1) *Pq - b*f*(m + q + 2*p + 1)*x^q - a*f*(m + q - 1)*x^(q - 2), x], x], x] /; GtQ[q, 1] && NeQ[m + q + 2*p + 1, 0]] /; FreeQ[{a, b, c, m, p}, x] && PolyQ [Pq, x] && ( !IGtQ[m, 0] || IGtQ[p + 1/2, -1])
Result contains higher order function than in optimal. Order 9 vs. order 3.
Time = 5.67 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.76
method | result | size |
default | \(-\frac {\sqrt {-d x +1}\, \sqrt {d x +1}\, \left (2 \,\operatorname {csgn}\left (d \right ) c \,d^{2} x^{2} \sqrt {-d^{2} x^{2}+1}+3 \sqrt {-d^{2} x^{2}+1}\, \operatorname {csgn}\left (d \right ) b \,d^{2} x +6 \,\operatorname {csgn}\left (d \right ) \sqrt {-d^{2} x^{2}+1}\, a \,d^{2}+4 \,\operatorname {csgn}\left (d \right ) \sqrt {-d^{2} x^{2}+1}\, c -3 \arctan \left (\frac {\operatorname {csgn}\left (d \right ) d x}{\sqrt {-d^{2} x^{2}+1}}\right ) b d \right ) \operatorname {csgn}\left (d \right )}{6 d^{4} \sqrt {-d^{2} x^{2}+1}}\) | \(139\) |
risch | \(\frac {\left (2 c \,d^{2} x^{2}+3 b \,d^{2} x +6 a \,d^{2}+4 c \right ) \sqrt {d x +1}\, \left (d x -1\right ) \sqrt {\left (-d x +1\right ) \left (d x +1\right )}}{6 d^{4} \sqrt {-\left (d x +1\right ) \left (d x -1\right )}\, \sqrt {-d x +1}}+\frac {b \arctan \left (\frac {\sqrt {d^{2}}\, x}{\sqrt {-d^{2} x^{2}+1}}\right ) \sqrt {\left (-d x +1\right ) \left (d x +1\right )}}{2 d^{2} \sqrt {d^{2}}\, \sqrt {-d x +1}\, \sqrt {d x +1}}\) | \(141\) |
-1/6*(-d*x+1)^(1/2)*(d*x+1)^(1/2)*(2*csgn(d)*c*d^2*x^2*(-d^2*x^2+1)^(1/2)+ 3*(-d^2*x^2+1)^(1/2)*csgn(d)*b*d^2*x+6*csgn(d)*(-d^2*x^2+1)^(1/2)*a*d^2+4* csgn(d)*(-d^2*x^2+1)^(1/2)*c-3*arctan(csgn(d)*d*x/(-d^2*x^2+1)^(1/2))*b*d) *csgn(d)/d^4/(-d^2*x^2+1)^(1/2)
Time = 0.33 (sec) , antiderivative size = 78, normalized size of antiderivative = 0.99 \[ \int \frac {x \left (a+b x+c x^2\right )}{\sqrt {1-d x} \sqrt {1+d x}} \, dx=-\frac {6 \, b d \arctan \left (\frac {\sqrt {d x + 1} \sqrt {-d x + 1} - 1}{d x}\right ) + {\left (2 \, c d^{2} x^{2} + 3 \, b d^{2} x + 6 \, a d^{2} + 4 \, c\right )} \sqrt {d x + 1} \sqrt {-d x + 1}}{6 \, d^{4}} \]
-1/6*(6*b*d*arctan((sqrt(d*x + 1)*sqrt(-d*x + 1) - 1)/(d*x)) + (2*c*d^2*x^ 2 + 3*b*d^2*x + 6*a*d^2 + 4*c)*sqrt(d*x + 1)*sqrt(-d*x + 1))/d^4
Timed out. \[ \int \frac {x \left (a+b x+c x^2\right )}{\sqrt {1-d x} \sqrt {1+d x}} \, dx=\text {Timed out} \]
Time = 0.30 (sec) , antiderivative size = 87, normalized size of antiderivative = 1.10 \[ \int \frac {x \left (a+b x+c x^2\right )}{\sqrt {1-d x} \sqrt {1+d x}} \, dx=-\frac {\sqrt {-d^{2} x^{2} + 1} c x^{2}}{3 \, d^{2}} - \frac {\sqrt {-d^{2} x^{2} + 1} b x}{2 \, d^{2}} - \frac {\sqrt {-d^{2} x^{2} + 1} a}{d^{2}} + \frac {b \arcsin \left (d x\right )}{2 \, d^{3}} - \frac {2 \, \sqrt {-d^{2} x^{2} + 1} c}{3 \, d^{4}} \]
-1/3*sqrt(-d^2*x^2 + 1)*c*x^2/d^2 - 1/2*sqrt(-d^2*x^2 + 1)*b*x/d^2 - sqrt( -d^2*x^2 + 1)*a/d^2 + 1/2*b*arcsin(d*x)/d^3 - 2/3*sqrt(-d^2*x^2 + 1)*c/d^4
Time = 0.33 (sec) , antiderivative size = 76, normalized size of antiderivative = 0.96 \[ \int \frac {x \left (a+b x+c x^2\right )}{\sqrt {1-d x} \sqrt {1+d x}} \, dx=\frac {6 \, b d \arcsin \left (\frac {1}{2} \, \sqrt {2} \sqrt {d x + 1}\right ) - {\left (6 \, a d^{2} + {\left (2 \, {\left (d x + 1\right )} c + 3 \, b d - 4 \, c\right )} {\left (d x + 1\right )} - 3 \, b d + 6 \, c\right )} \sqrt {d x + 1} \sqrt {-d x + 1}}{6 \, d^{4}} \]
1/6*(6*b*d*arcsin(1/2*sqrt(2)*sqrt(d*x + 1)) - (6*a*d^2 + (2*(d*x + 1)*c + 3*b*d - 4*c)*(d*x + 1) - 3*b*d + 6*c)*sqrt(d*x + 1)*sqrt(-d*x + 1))/d^4
Time = 8.58 (sec) , antiderivative size = 244, normalized size of antiderivative = 3.09 \[ \int \frac {x \left (a+b x+c x^2\right )}{\sqrt {1-d x} \sqrt {1+d x}} \, dx=-\frac {\sqrt {1-d\,x}\,\left (\frac {a}{d^2}+\frac {a\,x}{d}\right )}{\sqrt {d\,x+1}}-\frac {2\,b\,\mathrm {atan}\left (\frac {\sqrt {1-d\,x}-1}{\sqrt {d\,x+1}-1}\right )}{d^3}-\frac {\frac {14\,b\,{\left (\sqrt {1-d\,x}-1\right )}^3}{{\left (\sqrt {d\,x+1}-1\right )}^3}-\frac {14\,b\,{\left (\sqrt {1-d\,x}-1\right )}^5}{{\left (\sqrt {d\,x+1}-1\right )}^5}+\frac {2\,b\,{\left (\sqrt {1-d\,x}-1\right )}^7}{{\left (\sqrt {d\,x+1}-1\right )}^7}-\frac {2\,b\,\left (\sqrt {1-d\,x}-1\right )}{\sqrt {d\,x+1}-1}}{d^3\,{\left (\frac {{\left (\sqrt {1-d\,x}-1\right )}^2}{{\left (\sqrt {d\,x+1}-1\right )}^2}+1\right )}^4}-\frac {\sqrt {1-d\,x}\,\left (\frac {2\,c}{3\,d^4}+\frac {c\,x^3}{3\,d}+\frac {c\,x^2}{3\,d^2}+\frac {2\,c\,x}{3\,d^3}\right )}{\sqrt {d\,x+1}} \]
- ((1 - d*x)^(1/2)*(a/d^2 + (a*x)/d))/(d*x + 1)^(1/2) - (2*b*atan(((1 - d* x)^(1/2) - 1)/((d*x + 1)^(1/2) - 1)))/d^3 - ((14*b*((1 - d*x)^(1/2) - 1)^3 )/((d*x + 1)^(1/2) - 1)^3 - (14*b*((1 - d*x)^(1/2) - 1)^5)/((d*x + 1)^(1/2 ) - 1)^5 + (2*b*((1 - d*x)^(1/2) - 1)^7)/((d*x + 1)^(1/2) - 1)^7 - (2*b*(( 1 - d*x)^(1/2) - 1))/((d*x + 1)^(1/2) - 1))/(d^3*(((1 - d*x)^(1/2) - 1)^2/ ((d*x + 1)^(1/2) - 1)^2 + 1)^4) - ((1 - d*x)^(1/2)*((2*c)/(3*d^4) + (c*x^3 )/(3*d) + (c*x^2)/(3*d^2) + (2*c*x)/(3*d^3)))/(d*x + 1)^(1/2)